<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>cors-youku1327</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.js"></script>
</head>
<body>
<!--<script th:src="@{jquery-1.8.3.js}" type="text/javascript"></script>-->
<button id="button">获得用户</button>
<button id="button2">platform</button>
<button id="button3">rule</button>
<button id="button4">data</button>
<button id="button5">api</button>
<button id="button6">nginx</button>
<script>
    $("#button").click(function () {
        $.ajax({
            url: "http://localhost:8080/youku1327",
            type: "get",
            success: function (result) {
                console.log(result);
            }
        })
    });

    $("#button2").click(function () {
        $.ajax({
            url: "http://192.168.8.37:7003/cyberwingiot-platform/IotAppCustomApiService/queryExistTag",
            type: "get",
            // header: "origin: http://www.freebytes.net",
            success: function (result) {
                console.log(result);
            }
        })
    });

    $("#button3").click(function () {
        $.ajax({
            url: "http://192.168.6.122:8037/v1/debug/debugMap?key=ds",
            type: "get",
            success: function (result) {
                console.log(result);
            }
        })
    });

    $("#button4").click(function () {
        $.ajax({
            url: "http://192.168.6.122:8097/cyberwingiot-data/NodeInfoService/listNodes2",
            type: "get",
            success: function (result) {
                console.log(result);
            }
        })
    });

    $("#button5").click(function () {
        $.ajax({
            url: "http://192.168.8.38:7200/api/cyberwingiot-platform/IotAppCustomApiService/page",
            type: "get",
            success: function (result) {
                console.log(result);
            }
        })
    });

    $("#button6").click(function () {
        $.ajax({
            url: "http://localhost:8080/youku1327",
            type: "get",
            success: function (result) {
                console.log(result);
            }
        })
    });
</script>
</body>
</html>
